import request from '@/utils/request'

//获取地址列表
export const getAdelist = (id) =>{
    return request.get('/address/getAddressAll',{params: { id: id}})
}

// 地址添加请求
export const AddAddress = (addressData) => {
    return request.post('/address/add', addressData);
}

// 地址更新请求
export const UpdateAdd = (addressData) => {
    return request.post('/address/update', addressData);
}

// 地址删除接口 根据地址id
export const DelAddress = (id) => {
    return request.get('/address/del', {params: { id: id}});
}
